package com.test.util;

public class ConvertUtil {
    public static String converToString(Object obj) {
        String str = "";
        if(null != obj) {
            str = obj.toString();
        }
        return str;
    }
    public static Integer converToInteger(Object obj) {
        Integer result = null;
        if(null != obj) {
            try{
                result = Integer.parseInt(obj.toString());
            }catch (Exception e) {

            }
        }
        return result;
    }
}
